package com.mx.kn.cstf2.actions;

import java.util.Map;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

/**
 *
 * @author user1
 */
@Component("loginExit")
@Scope(value="session")

public class LoginExit extends ActionSupport{
    
    private String LOGINEXIT="loginexit";
    
      public String execute() {
    	  ActionContext contexto = ActionContext.getContext();
          Map<String, Object> sesion = contexto.getSession();
          sesion.clear();
          
          return LOGINEXIT;
      }
}
